package com.hq.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hanq
 * 消费者
 */
@RestController
public class HelloController {

    @Autowired
    private FeignConsumerClient client;

    @GetMapping("/hello")
    public String hello(){

        return client.hello();

    }
}
